﻿@model Mvc4.Models.Search

@using (Html.BeginForm("Search", (string)ViewBag.Name, null, FormMethod.Post, new { @class = "search-form" }))
{
    <div class="input-wrapper">
        <input type="text" class="location" autocomplete="off" id="location" name="goodName" placeholder="What are you looking for?">
    </div>
    <div id="checkinWrapper" class="input-wrapper">
        <input type="text" id="checkin" name="from" placeholder="From">
    </div>
    <div id="checkoutWrapper" class="input-wrapper">
        <input type="text" id="checkout" name="to" placeholder="To">
    </div>
    <div id="search-btn" class="input-wrapper">
        <input type="submit" style="vertical-align:middle; margin-top:0px; margin-right:0px; width:87px; padding-right:10px; padding-left: 10px;" class="btn btn-primary"; value="Search" />
    </div>
    <div class="hidden">
        @Html.Hidden("siteId", (int)ViewBag.SiteId)
        @Html.Hidden("siteName", (string)ViewBag.Name)
    </div>
}
